// 商品首页
.commodity {
    width: 100%;
    height: calc(100vh - 44px);
    background-color: #f6faff;
    box-sizing: border-box;
    overflow: auto;
    display: flex;
    flex-flow: column;

    :deep(.van-nav-bar .van-icon) {
        color: #1A1B1C !important;
    }

    :deep(.van-pull-refresh) {
        height: calc(100vh - 260px);
        overflow: scroll;
    }

    .commodity_classify {
        width: 100%;
        height: 44px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        margin-bottom: 10px;
        position: relative;

        .commodity_classify_items {
            width: 110px;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                width: 10px;
                height: 6px;
                margin-left: 5px;
            }

            span {
                flex: 0.7;
                min-width: 0;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                text-align: right;
            }
        }

        .commodity_classify_item {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-width: 0;

            img {
                width: 10px;
                height: 6px;
                margin-left: 5px;
            }

            span {
                flex: 0.7;
                min-width: 0;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                text-align: right;
            }
        }

        .commodity_classify_div {
            flex: 0.3;
            margin-left: 10px;

            img {
                width: 16px;
                height: 18px;
            }
        }
    }

    .wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;

        .wrapper_div {
            width: 315px;
            background-color: #fff;
            border-radius: 5px;
            position: relative;

            :deep(.van-field__control) {
                background: #F6FAFF !important;
            }

            ::placeholder {
                font-size: 14px;
                color: #B8BECA;
            }

            .title {
                font-weight: 500;
                font-size: 16px;
                color: #1A1B1C;
                width: 100%;
                text-align: center;
                margin: 30px 0 20px 0;
            }

            .van-image {
                width: 10px;
                height: 10px;
                position: absolute;
                right: 18px;
                top: 18px;
            }

            :deep(.van-form) {
                min-height: 265px;
            }

            .button {
                color: #FFFFFF;
                font-size: 14px;
                width: 285px;
                height: 44px;
                background: #0094FF;
                border-radius: 23px;
                margin: auto;
                display: flex;
                justify-content: center;
                margin-top: 10px;
            }
        }
    }
}

// 搜索框
.search {
    width: 100%;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;

    .search_left {
        flex: 1;
        height: 34px;
        background: #fff;
        border-radius: 16px;
        padding: 4px 4px 4px 15px;
        min-width: 0;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;

        img {
            width: 14px;
            height: 14px;
            margin-right: 10px;
        }

        input {
            flex: 1;
            height: 14px;
            min-width: 0;
            border: none;
            font-size: 12px;
            margin-right: 5px;
        }

        .search_left_button {
            width: 54px;
            height: 26px;
            font-weight: 400;
            font-size: 10px;
            color: #FFFFFF;
        }
    }
}

// 搜索筛选弹框架子
.screenHome_bg {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: calc(100vh - 195px);
    z-index: 2;

    .screenHome {
        width: 100%;
        height: 50vh;
        box-sizing: border-box;
        background: #fff;
        display: flex;
        flex-flow: column;
        justify-content: space-between;

        .screenHome_slot {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 15px 15px 0;
            margin-bottom: 15px;
            box-sizing: border-box;
        }

        .buttons {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px 15px;
            box-sizing: border-box;

            .reset {
                width: 48%;
                height: 44px;
                border-radius: 23px;
                border: 1px solid #0094FF;
                text-align: center;
                line-height: 44px;
                font-weight: 400;
                font-size: 14px;
                color: #0094FF;
            }

            .submit {
                width: 48%;
                height: 44px;
                border-radius: 23px;
                background: #0094FF;
                text-align: center;
                line-height: 44px;
                font-weight: 400;
                font-size: 14px;
                color: #fff;
            }
        }
    }
}

// 筛选项目组件
.searchScreen {
    width: 100%;

    .searchScreen_one {
        .searchScreen_one_title {
            font-size: 14px;
            font-weight: 700;
            color: #1A1B1C;
            margin-bottom: 15px;
        }

        .searchScreen_one_radio {
            display: flex;
            flex-wrap: wrap;
            min-height: 50px;

            .searchScreen_one_radio_div {
                width: calc(100% / 4);
                height: 30px;
                box-sizing: border-box;
                margin-bottom: 15px;
                display: flex;
                align-items: center;
                justify-content: center;

                .searchScreen_one_radio_item {
                    width: 78px;
                    height: 30px;
                    background: #F6FAFF;
                    border-radius: 5px;
                    text-align: center;
                    line-height: 30px;
                    font-weight: 400;
                    font-size: 14px;
                    color: #B8BECA;
                    overflow: hidden;
                }

                .searchScreen_one_radio_item_active {
                    background: #0094FF;
                    color: #fff;
                    border-color: #0094FF;
                }
            }
        }
    }

    .searchScreen_date {
        .searchScreen_date_title {
            font-size: 14px;
            font-weight: 700;
            color: #1A1B1C;
            margin-bottom: 15px;
        }

        .searchScreen_date_shelf {
            width: 100%;
            height: 34px;
            display: flex;
            position: relative;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            margin-bottom: 20px;

            .searchScreen_date_shelf_div {
                width: 159px;
                height: 34px;
                position: relative;
                text-align: center;
                line-height: 34px;
                background: #F6FAFF;
                line-height: 36px;

                .menu_cions {
                    position: absolute;
                    width: 14px;
                    height: 14px;
                    top: 10px;
                    left: 15px;
                }

                .title {
                    font-weight: 400;
                    font-size: 14px;
                    color: #B8BECA;
                }
            }

            .separator {
                position: absolute;
                color: #8492AD;
                font-size: 14px;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
            }
        }
    }

    .loading {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(50vh - 69px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

// 首页列表样式
.commodity_list {
    display: flex;
    flex-flow: column;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 15px;

    .list_top {
        display: flex;
        align-items: center;
        height: 120px;

        .list_top_img {
            position: relative;
            margin-right: 5px;

            .van-image {
                width: 120px;
                height: 120px;
            }

            .list_top_img_tag {
                width: 50px;
                height: 20px;
                line-height: 20px;
                font-weight: 400;
                font-size: 12px;
                color: #FFFFFF;
                text-align: center;
                background: #0094FF;
                border-radius: 2px 0px 2px 0px;
                position: absolute;
                top: 0px;
                left: 0px;
            }
        }

        .list_top_right {
            flex: 1;
            height: 120px;
            min-width: 0;
            display: flex;
            flex-flow: column;
            justify-content: space-between;

            .list_top_right_title {
                display: flex;
                align-items: center;
                justify-content: space-between;
                // margin-bottom: 10px;

                .title {
                    flex: 1;
                    min-width: 0;
                    margin-right: 15px;
                    font-weight: 500;
                    font-size: 16px;
                    color: #1A1B1C;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                .tag {
                    height: 26px;
                    line-height: 26px;
                    text-align: center;
                    border-radius: 2px;
                    font-weight: 400;
                    font-size: 14px;
                    padding: 0 5px;
                }

                .tag_lan {
                    background: #EBF4FF;
                    color: #0094FF;
                }

                .tag_red {
                    background: #FDE7E7;
                    color: #FC2540;
                }

                .tag_lv {
                    background: #E7FDEE;
                    color: #19D11B;
                }

                .tag_huang {
                    background: #FFE9E1;
                    color: #FF5A1A;
                }
            }

            .list_top_right_introduce {
                width: 100%;
                font-weight: 400;
                font-size: 12px;
                color: #B8BECA;
                // margin-bottom: 15px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }

            .list_top_right_money {
                display: flex;
                align-items: flex-end;
                justify-content: flex-start;

                .money_left {
                    font-weight: 500;
                    font-size: 14px;
                    color: #FC2540;
                    display: flex;
                    align-items: center;

                    &>div:first-child {
                        margin-right: 10px;

                        span {
                            font-size: 18px;
                        }
                    }

                    .commission {
                        margin-right: 10px;

                        .fonts {
                            display: inline-block;
                            width: 22px;
                            height: 16px;
                            background: #1B1714;
                            text-align: center;
                            line-height: 16px;
                            border-radius: 2px;
                            font-weight: 400;
                            font-size: 12px;
                            color: #CEA46C;
                        }

                        .numbers {
                            display: inline-block;
                            width: 37px;
                            height: 16px;
                            background: linear-gradient(136deg, #E9D1A5 0%, #CEA46C 100%);
                            border-radius: 2px;
                            font-weight: 500;
                            font-size: 12px;
                            color: #1B1714;
                            text-align: center;
                            line-height: 16px;
                        }
                    }

                }

                .money_right {
                    border-radius: 2px;
                    border: 1px solid #FF5A1A;
                    font-weight: 400;
                    font-size: 12px;
                    color: #FF5A1A;
                    height: 16px;
                    text-align: center;
                    line-height: 16px;
                    // flex: 1;
                    // width: 40px;
                    min-width: 40px;
                    max-width: 70px;
                    // width: 60px;

                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 1;
                    -webkit-box-orient: vertical;

                }
            }

            .list_top_right_times {
                width: 100%;
                font-weight: 400;
                font-size: 12px;
                color: #8492AD;
            }

            .list_top_right_return_product {
                width: 100%;
                display: flex;
                align-items: center;

                .title {
                    width: 40px;
                    height: 15px;
                    background: #0094FF;
                    border-radius: 2px;
                    font-weight: 400;
                    font-size: 10px;
                    color: #FFFFFF;
                    text-align: center;
                    line-height: 15px;
                }

                .number {
                    display: flex;
                    align-items: center;
                    height: 15px;
                    background: #EBF4FF;
                    border-radius: 2px;
                    box-sizing: border-box;
                    padding: 0 5px;
                    font-weight: 500;
                    font-size: 10px;
                    line-height: 15px;

                    .color {
                        color: #0094FF;
                    }

                    .total {
                        color: #8492AD;
                        // margin-top: -2px;
                    }
                }

                .van-image {
                    width: 14px;
                    height: 14px;
                    margin-left: 10px;
                }
            }

            .list_top_right_bottom {
                display: flex;
                align-items: center;
                justify-content: space-between;

                .inventory {
                    border-radius: 2px;
                    overflow: hidden;

                    .fonts {
                        display: inline-block;
                        height: 18px;
                        background: #0094FF;
                        font-weight: 400;
                        font-size: 10px;
                        color: #FFFFFF;
                        text-align: center;
                        line-height: 18px;
                    }

                    .font {
                        padding: 0 3px;
                    }

                    .numbers {
                        display: inline-block;
                        height: 18px;
                        background: #EBF4FF;
                        text-align: center;
                        line-height: 18px;
                        font-weight: 500;
                        font-size: 10px;
                        color: #0094FF;
                        padding: 0 3px;
                    }
                }

                .button {
                    width: 84px;
                    height: 24px;
                    background: #0094FF;
                    border-radius: 2px;
                    text-align: center;
                    line-height: 24px;
                    font-weight: 500;
                    font-size: 14px;
                    color: #FFFFFF;
                }

                .times {
                    font-weight: 400;
                    font-size: 12px;
                    color: #8492AD;
                }
            }
        }
    }

    .list_text {
        display: flex;
        flex-flow: column;

        .list_text_p {
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .list_text_p_left {
                font-weight: 400;
                font-size: 14px;
                color: #1A1B1C;
            }

            .list_text_p_right {
                font-weight: 400;
                font-size: 14px;
                color: #B8BECA;
                flex: 0.8;
                text-align: right;
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .list_text_p_number {
                font-weight: 500;
                font-size: 14px;
                color: #0094FF;
            }

            .list_text_p_yard {
                font-weight: 500;
                font-size: 14px;
                color: #19D11B;
            }
        }
    }

    .list_text_cy {
        display: flex;

        .list_text_p_cy {
            margin-top: 10px;
            display: flex;
            align-items: center;
            width: 63%;
        }

        .list_text_p_cys {
            margin-top: 10px;
            display: flex;
            align-items: center;
            width: 37%;
            justify-content: flex-end;
        }

        .list_text_p_left_cy {
            font-weight: 400;
            font-size: 14px;
            color: #B8BECA;
        }

        .list_text_p_right_cy {
            font-weight: 400;
            font-size: 14px;
            color: #B8BECA;
            flex: 0.8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .list_text_p_number_cy {
            font-weight: 500;
            font-size: 14px;
            color: #0094FF;
        }
    }
}

// 不还说明弹窗1
:deep(.van-popup) {
    min-height: 427px;

    .dialog_top {
        width: 100%;
        height: 165px;
        background: url('@/assets/operation/icon_erciquerenbeijing.png') no-repeat;
        background-size: 100% 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        align-content: center;

        .van-image {
            width: 70px;
            height: 70px;
        }

        .title {
            font-weight: 500;
            font-size: 16px;
            color: #1A1B1C;
            text-align: center;
            width: 100%;
            margin-top: 20px;
        }

        .describe {
            font-weight: 400;
            font-size: 14px;
            color: #1A1B1C;
            margin-top: 20px;
        }

    }

    .content {
        width: 100%;
        box-sizing: border-box;
        padding: 0 15px;

        .content_item {
            width: 100%;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;

            .label {
                width: 70px;
                font-weight: 400;
                font-size: 14px;
                color: #1A1B1C;
            }

            .value {
                width: calc(100% - 90px);
                font-weight: 400;
                font-size: 14px;
                color: #8492AD;
            }
        }
    }

    .button {
        width: 265px;
        height: 44px;
        background: #0094FF;
        border-radius: 23px;
        text-align: center;
        line-height: 44px;
        font-weight: 400;
        font-size: 16px;
        color: #FFFFFF;
        margin: 30px auto 20px;
    }
}

// 不还说明弹窗2
.pop_content {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 15px;

    .conent_pre_header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .conent_pre_img {
            width: 90px;
            height: 90px;

            .van-image {
                width: 90px;
                height: 90px;

                :deep(.van-image__img) {
                    border-radius: 5px !important;
                }
            }
        }

        .liveStreamingMechanisms {
            position: absolute;
            top: 0;
            left: 0;
            width: 50px;
            height: 20px;
            background: #0094FF;
            border-radius: 2px 0px 2px 0px;
            font-weight: 400;
            font-size: 12px;
            color: #FFFFFF;
            text-align: center;
            line-height: 20px;
        }

        .conent_pre_des {
            width: calc(100% - 90px);
            height: 90px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            padding-left: 10px;
            align-content: space-around;

            .contnt_title {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;

                .contnt_styleName {
                    font-weight: 400;
                    font-size: 18px;
                    color: #1A1B1C;
                    width: 100%;
                    height: 25px;
                    white-space: nowrap;
                    /* 确保文本在一行内显示 */
                    overflow: hidden;
                    /* 隐藏溢出的内容 */
                    text-overflow: ellipsis;
                }
            }

            .contnt_mechanism {
                width: 100%;
                font-weight: 400;
                font-size: 12px;
                color: #8492AD;
            }

            .inventory {
                .fonts {
                    display: inline-block;
                    width: 30px;
                    height: 18px;
                    background: #0094FF;
                    border-radius: 2px;
                    font-weight: 400;
                    font-size: 10px;
                    color: #FFFFFF;
                    text-align: center;
                    line-height: 18px;
                }

                .font {
                    width: 40px !important;
                }

                .numbers {
                    display: inline-block;
                    width: 37px;
                    height: 18px;
                    background: #EBF4FF;
                    border-radius: 2px;
                    text-align: center;
                    line-height: 18px;
                    font-weight: 500;
                    font-size: 10px;
                    color: #0094FF;
                }
            }


            .contnt_bottom {
                width: 100%;
                height: 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                font-weight: 400;
                font-size: 12px;
                color: #B8BECA;

                .price {
                    font-weight: 500;
                    font-size: 14px;
                    color: #FC2540;
                }

                .commission {
                    font-weight: 500;
                    font-size: 14px;
                    color: #FC2540;
                }

                .coreName {
                    font-weight: 400;
                    font-size: 12px;
                    color: #0094FF;
                }
            }

        }
    }

    .product_detail_title-content-info {
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .product_detail_title-content-info-name {
            font-weight: 400;
            font-size: 14px;
            color: #1a1b1c;
            line-height: 14px;
            width: 100px;
        }

        .names {
            width: 50px !important;
        }


        .product_detail_title-content-info-content {
            flex: 1;
            min-width: 0;
            font-weight: 400;
            font-size: 14px;
            color: #b8beca;
            line-height: 14px;
            margin-left: auto;
            display: flex;
            justify-content: flex-end;
            word-break: break-all;

            .priColor {
                color: #0094FF;
            }

            :deep(.van-field) {
                background: #F6FAFF;
            }
        }

        .contents {
            width: calc(100% - 50px) !important;
            margin-left: 0 !important;
        }

        .colors {
            font-weight: 400;
            font-size: 16px;
            color: #FC2540;
        }
    }

    .buttons_div {
        width: 345px;
        height: 44px;
        background: #0094FF;
        border-radius: 23px;
        text-align: center;
        line-height: 44px;
        font-weight: 400;
        font-size: 16px;
        color: #FFFFFF;
        margin-top: 10px;
    }
}